package es.deusto.ingenieria.aike.puzzle;

import es.deusto.ingenieria.aike.formulation.State;
import es.deusto.ingenieria.ingenieria.search.SearchMethod;

public class MainProgram {
	
	
	public static void main(String[] args) {
		try {		
			EnvironmentXMLReader environmentSAXParser = new EnvironmentXMLReader("data/parkinglotmaze4.xml");		
			State initialState = new State((Environment)environmentSAXParser.getInformation());
			LotProblem problem = new LotProblem(initialState);	
			SearchMethod search = new AStarWithLog(new ManhattanDistance());
			problem.solve(search);
		} catch (Exception ex) {
			System.err.println("% [MainProgram] Error: " + ex.getMessage());
			ex.printStackTrace();
		}
	}
}